package com.naizhuai.network.apistore;

import okhttp3.ResponseBody;
import retrofit2.http.GET;
import retrofit2.http.Streaming;
import retrofit2.http.Url;
import rx.Observable;

/**
 * Created by code_han on 2018/3/28.
 * 下载图片文件的网络接口调用
 */
public interface DownloadImageRequest {

    //根据文件的url下载文件
    @Streaming
    @GET
    Observable<ResponseBody> downloadImageByUrl(@Url String imageUrl);
}
